package com.jeecg.p3.system.entity;

import com.jeecg.p3.system.poster.entity.ExamQuestion;
import org.jeecgframework.p3.core.utils.persistence.Entity;

/**
 * 视频课程，每一个章节代表一个当前对象
 * @author binbin
 * @create 2020-09-09 10:49
 */
public class Course implements Entity<Long> {

    /**
     *序号
     */
    private Long id;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id=id;
    }

    private String courseName;//课程名称
    private String context;//视频明细
    private Long studyNum;//视频查看人次
    private String videoId;//腾讯云视频id,播放视频使用

    private String videoName;//微信分享名称
    private String videoCoverUrl;//微信分享封面Url
    private String opt1;//微信分享描述

    private String videoUrl;//腾讯云视频地址
    private String videoTime;//腾讯云视频时长
    private String videoState;//腾讯云视频状态
    private String videoUploadDate;//腾讯云视频上传时间
    private String videoSize;//腾讯云视频大小

    private String opt2;//冗余变量
    private String opt3;//冗余变量
    private Product product;//商品，一个商品对应多个课程
    private ExamQuestion examQues;//课时对应试卷信息（冗余字段，前台使用）
    private String isPublic;//是否公开课：1是，0否。默认为0
    private Integer sort;//排序


    /**
     * 无参构造函数
     */
    public Course() {
    }

    public Course(Long id, String courseName, String context, Long studyNum, String videoName, String videoCoverUrl, String videoUrl, String videoId, String videoTime, String videoState, String videoUploadDate, String videoSize, String opt1, String opt2, String opt3) {
        this.id = id;
        this.courseName = courseName;
        this.context = context;
        this.studyNum = studyNum;
        this.videoName = videoName;
        this.videoCoverUrl = videoCoverUrl;
        this.videoUrl = videoUrl;
        this.videoId = videoId;
        this.videoTime = videoTime;
        this.videoState = videoState;
        this.videoUploadDate = videoUploadDate;
        this.videoSize = videoSize;
        this.opt1 = opt1;
        this.opt2 = opt2;
        this.opt3 = opt3;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Long getStudyNum() {
        return studyNum;
    }

    public void setStudyNum(Long studyNum) {
        this.studyNum = studyNum;
    }

    public String getVideoName() {
        return videoName;
    }

    public void setVideoName(String videoName) {
        this.videoName = videoName;
    }

    public String getVideoCoverUrl() {
        return videoCoverUrl;
    }

    public void setVideoCoverUrl(String videoCoverUrl) {
        this.videoCoverUrl = videoCoverUrl;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public String getVideoTime() {
        return videoTime;
    }

    public void setVideoTime(String videoTime) {
        this.videoTime = videoTime;
    }

    public String getVideoState() {
        return videoState;
    }

    public void setVideoState(String videoState) {
        this.videoState = videoState;
    }

    public String getVideoUploadDate() {
        return videoUploadDate;
    }

    public void setVideoUploadDate(String videoUploadDate) {
        this.videoUploadDate = videoUploadDate;
    }

    public String getVideoSize() {
        return videoSize;
    }

    public void setVideoSize(String videoSize) {
        this.videoSize = videoSize;
    }

    public String getOpt1() {
        return opt1;
    }

    public void setOpt1(String opt1) {
        this.opt1 = opt1;
    }

    public String getOpt2() {
        return opt2;
    }

    public void setOpt2(String opt2) {
        this.opt2 = opt2;
    }

    public String getOpt3() {
        return opt3;
    }

    public void setOpt3(String opt3) {
        this.opt3 = opt3;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public ExamQuestion getExamQues() {
        return examQues;
    }

    public void setExamQues(ExamQuestion examQues) {
        this.examQues = examQues;
    }

    public String getIsPublic() {
        return isPublic;
    }

    public void setIsPublic(String isPublic) {
        this.isPublic = isPublic;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
